﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace windows_turn_off_screen {
  static class Program {
    /// <summary>
    /// 应用程序的主入口点。
    /// </summary>
    [STAThread]
    static void Main(string[] args) {
      if (args == null || args.Length == 0) {
        Console.WriteLine("false");
        //禁止鼠标键盘动作+关屏
        Application.Run(new Form1(false));
      } else {
        //锁屏+关屏
        Application.Run(new Form1(true));
      }
    }
  }
}
